import unittest
from alg import Solution
from gen import generate_test_cases

class TestSortArray(unittest.TestCase):
    def test_sort_array(self):
        solution = Solution()
        for input_data, expected in generate_test_cases():
            with self.subTest(input=input_data):
                result = solution.sortArray(input_data.copy())
                self.assertEqual(result, expected)

if __name__ == "__main__":
    unittest.main()